home *** CD-ROM | disk | FTP | other *** search
- /*
- ADPRO IMAGES TO EMBOSSED
- By J.L. White
- ©1994 Merlin's Software
-
- Load Image & Emboss
- Art Department Pro Script
-
- Batch Factory Batch Conversion Scripts are basically Arexx scripts that
- allow you to pass certain parameters to the external program you wish
- to use to convert the images from one format to another. You can pass
- five different strings from Batch Factory to the script by using the
- following commands:
-
- $N = This will pass the current selected filename.
- $P = This will tell Batch Factory to ask for a path to save new frames to.
- $# = This will pass the current frame number in the script.
- $T = This will pass the total number of frames in the script.
- $A = This will pass an offset number to be used to save frames with.
-
- NOTE: The following line is required to work as a Batch Factory Script:
-
- PARSE=$N $P $# $A
-
- */
-
- options results
- call Locate_ADPro
- address "ADPro"
-
- arg TheFile OutFile FrameNum AddNum
- SaveNum = FrameNum + AddNum
- if FrameNum = 1 then adpro_to_front
-
- lformat "UNIVERSAL"
- load TheFile
- if RC ~= 0 then do
- adpro_to_front
- okay1 "Error Loading" TheFile
- exit
- end
- operator "negative"
- load TheFile 1 1 50
- if RC ~= 0 then do
- adpro_to_front
- okay1 "Error Reloading" TheFile
- exit
- end
- operator "color_to_gray" 2990 5880 1130
- contrast 50
- sformat "IFF"
- if OutFile = "SAME" then
- save TheFile "RAW"
- else
- save OutFile""right(SaveNum,3,'0') "RAW"
- exit
-
- Locate_ADPro:
- if (POS('ADPro',SHOW('Ports')) = 0)
- then do
- address command 'run < nil: > nil: adpro:adpro MAXMEM=5000000'
- address command 'wait 4'
- end
- return
-
-
-